home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / kernel / table.def < prev    next >
Encoding:
Text File  |  1994-08-20  |  24.6 KB  |  672 lines  |  [TEXT/R*ch]

  1. /* Definitions of all the tables in Xconq GDL.
  2.    Copyright (C) 1991, 1992, 1993, 1994 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. DEF_UT_TABLE("accident-damage", ut_accident_damage,
  10.     "damage from an accident",
  11.     utaccidentdamage, constaccidentdamage, 0, 0, 9999)
  12.  
  13. DEF_UT_TABLE("accident-hit-chance", ut_accident_hit,
  14.     "chance to be hit in given terrain type, as .01% chance",
  15.     utaccidenthit, constaccidenthit, 0, 0, 9999)
  16.  
  17. DEF_UT_TABLE("accident-vanish-chance", ut_accident_vanish,
  18.     "chance to vanish in given terrain type, as .01% chance",
  19.     utaccidentvanish, constaccidentvanish, 0, 0, 9999)
  20.  
  21. DEF_UU_TABLE("acp-for-retreat", uu_acp_retreat,
  22.     "extra acp available when retreating",
  23.     uuacpretreat, constuuacpretreat, -9999, 0, 9999)
  24.  
  25. DEF_UT_TABLE("acp-night-effect", ut_acp_night_effect,
  26.     "effect of night on acp",
  27.     utacpnighteffect, constutacpnighteffect, 0, 100, 9999)
  28.  
  29. DEF_UU_TABLE("acp-occupant-effect", uu_acp_occ_effect,
  30.     "effect of occupants on acp",
  31.     uuacpocceffect, constuuacpocceffect, 0, 100, 9999)
  32.  
  33. DEF_UT_TABLE("acp-to-add-terrain", ut_acp_to_add_terrain,
  34.     "the acp needed by a type of unit to add a type of terrain",
  35.     utacptoaddterrain, constutacptoaddterrain, 0, 0, 9999)
  36.  
  37. DEF_UU_TABLE("acp-to-attack", uu_acp_to_attack,
  38.     "acp needed by a type of unit to attack another type",
  39.     uuacptoattack, constuuacptoattack, 0, 1, 9999)
  40.  
  41. DEF_UU_TABLE("acp-to-be-fired-on", uu_acp_to_be_fired_on,
  42.     "acp used up by a type of unit when fired on by another type",
  43.     uuacptobefiredon, constuuacptobefiredon, 0, 1, 9999)
  44.  
  45. DEF_UU_TABLE("acp-to-build", uu_acp_to_build,
  46.     "acp needed by a type of unit to work on another type",
  47.     uuacptobuild, constuuacptobuild, 0, 0, 9999)
  48.  
  49. DEF_UU_TABLE("acp-to-capture", uu_acp_to_capture,
  50.     "acp needed by a type of unit to capture another type",
  51.     uuacptocapture, constuuacptocapture, 0, 0, 9999)
  52.  
  53. DEF_UU_TABLE("acp-to-change-type", uu_acp_to_change_type,
  54.     "acp needed by one type of unit to change to another type",
  55.     uuacptochangetype, constuuacptochangetype, 0, 0, 9999)
  56.  
  57. DEF_UU_TABLE("acp-to-create", uu_acp_to_create,
  58.     "acp needed by one type of unit to create another type",
  59.     uuacptocreate, constuuacptocreate, 0, 0, 9999)
  60.  
  61. DEF_UU_TABLE("acp-to-defend", uu_acp_to_defend,
  62.     "acp used up by a type of unit to defend against another type",
  63.     uuacptodefend, constuuacptodefend, 0, 1, 9999)
  64.  
  65. DEF_UU_TABLE("acp-to-enter-unit", uu_acp_to_enter,
  66.     "acp needed by one type of unit to enter another type",
  67.     uuacptoenter, constuuacptoenter, 0, 1, 9999)
  68.  
  69. DEF_UM_TABLE("acp-to-load", um_acp_to_load,
  70.     "",
  71.     umacptoload, constumacptoload, 0, 0, 9999)
  72.  
  73. DEF_UT_TABLE("acp-to-remove-terrain", ut_acp_to_remove_terrain,
  74.     "acp needed to remove a type of terrain",
  75.     utacptoremoveterrain, constutacptoremoveterrain, 0, 0, 9999)
  76.  
  77. DEF_UM_TABLE("acp-to-produce", um_acp_to_produce,
  78.     "",
  79.     umacptoproduce, constumacptoproduce, 0, 0, 9999)
  80.  
  81. DEF_UU_TABLE("acp-to-repair", uu_acp_to_repair,
  82.     "acp needed by one type of unit to repair another type",
  83.     uuacptorepair, constuuacptorepair, 0, 0, 9999)
  84.  
  85. DEF_UU_TABLE("acp-to-research", uu_acp_to_research,
  86.     "acp needed by one type of unit to research another type",
  87.     uuacptoresearch, constuuacptoresearch, 0, 0, 9999)
  88.  
  89. DEF_UU_TABLE("acp-to-toolup", uu_acp_to_toolup,
  90.     "acp needed by one type of unit to toolup another type",
  91.     uuacptotoolup, constuuacptotoolup, 0, 0, 9999)
  92.  
  93. DEF_UM_TABLE("acp-to-unload", um_acp_to_unload,
  94.     "",
  95.     umacptounload, constumacptounload, 0, 0, 9999)
  96.  
  97. DEF_TT_TABLE("adjacent-terrain-effect", tt_adj_terr_effect,
  98.     "effect of adjacent terrain on another",
  99.     ttadjterreffect, constttadjterreffect, -1, -1, 0)
  100.  
  101. DEF_UT_TABLE("alter-terrain-range", ut_alter_range,
  102.     "distance at which a unit can alter terrain",
  103.     utalterrange, constutalterrange, 0, 0, 9999)
  104.  
  105. DEF_UT_TABLE("altitude-max", ut_alt_max,
  106.     "how high unit can go in the terrain",
  107.     utaltmax, constutaltmax, -9999, 0, 9999)
  108.  
  109. DEF_UT_TABLE("altitude-min", ut_alt_min,
  110.     "how low unit can go in the terrain",
  111.     utaltmin, constutaltmin, -9999, 0, 9999)
  112.  
  113. DEF_UU_TABLE("attack-range", uu_attack_range,
  114.     "maximum distance at which a unit may attack",
  115.     uuattackrange, constuuattackrange, 0, 1, 9999)
  116.  
  117. DEF_UU_TABLE("attack-range-min", uu_attack_range_min,
  118.     "minimum distance at which a unit may attack",
  119.     uuattackrangemin, constuuattackrangemin, 0, 0, 9999)
  120.  
  121. DEF_UT_TABLE("attack-terrain-effect", ut_attack_terrain_effect,
  122.     "effect of terrain on an attack's hit chance",
  123.     utattackterraineffect, constutattackterraineffect, 0, 100, 9999)
  124.  
  125. DEF_UT_TABLE("attrition", ut_attrition,
  126.     "base chance to lose hp in given terrain type",
  127.     utattrition, constutattrition, 0, 0, 9999)
  128.  
  129. DEF_UM_TABLE("base-consumption", um_base_consumption,
  130.     "basic amount of supply consumption in each turn",
  131.     umbaseconsumption, constumbaseconsumption, 0, 0, 9999)
  132.  
  133. DEF_UM_TABLE("base-production", um_base_production,
  134.     "basic amount of supply production",
  135.     umbaseproduction, constumbaseproduction, 0, 0, 9999)
  136.  
  137. DEF_UU_TABLE("bridge", uu_bridge,
  138.     "whether an assault can cross to a unit on impassable terrain",
  139.     uubridge, constbridge, 0, 0, 0)
  140.  
  141. DEF_UU_TABLE("build-range", uu_build_range,
  142.     "max distance between unit and unit being worked on",
  143.     uubuildrange, constuubuildrange, 0, 0, 9999)
  144.  
  145. DEF_UU_TABLE("can-enter-independent", uu_can_enter_indep,
  146.     "true if the type can enter an indep of some other type",
  147.     uucanenterindep, constuucanenterindep, 0, 0, 1)
  148.  
  149. DEF_UU_TABLE("capture-chance", uu_capture,
  150.     "base chance for one type of unit to capture another type",
  151.     uucapture, constuucapture, 0, 0, 100)
  152.  
  153. DEF_TM_TABLE("change-on-exhaustion-chance", tm_change_on_exhaust,
  154.     "chance that terrain will change type if no more of material",
  155.     tmchangeonexhaust, consttmchangeonexhaust, 0, 0, 100)
  156.  
  157. DEF_TT_TABLE("coating-depth-max", tt_coat_max,
  158.     "max depth of coating type over another type of terrain",
  159.     ttcoatmax, constttcoatmax, 0, 0, 9999)
  160.  
  161. DEF_TT_TABLE("coating-depth-min", tt_coat_min,
  162.     "min depth of coating type over another type of terrain",
  163.     ttcoatmin, constttcoatmin, 0, 0, 9999)
  164.  
  165. DEF_UM_TABLE("consumption-as-occupant", um_consumption_as_occupant,
  166.     "effect of being an occupant on base consumption",
  167.     umconsumptionasoccupant, constumconsumptionasoccupant, 0, 100, 9999)
  168.  
  169. DEF_UM_TABLE("consumption-on-creation", um_consumption_on_creation,
  170.     "amount of material used by any creator to create a type of unit",
  171.     umconsumptiononcreation, constumconsumptiononcreation, 0, 0, 9999)
  172.  
  173. DEF_UM_TABLE("consumption-per-attack", um_consumption_per_attack,
  174.     "amount of material used up by an attack action",
  175.     umconsumptionperattack, constumconsumptionperattack, 0, 0, 9999)
  176.  
  177. DEF_UM_TABLE("consumption-per-build", um_consumption_per_build,
  178.     "amount of material used up by a build action",
  179.     umconsumptionperbuild, constumconsumptionperbuild, 0, 0, 9999)
  180.  
  181. DEF_UM_TABLE("consumption-per-move", um_consumption_per_move,
  182.     "amount of material used up by a move action",
  183.     umconsumptionpermove, constconsumptionpermove, 0, 0, 9999)
  184.  
  185. DEF_UM_TABLE("consumption-per-repair", um_consumption_per_repair,
  186.     "amount of material used up by any repair action on a type of unit",
  187.     umconsumptionoperrepair, constconsumptionperrepair, 0, 0, 9999)
  188.  
  189. DEF_UU_TABLE("control-chance", uu_control,
  190.     "base chance that a unit can control another",
  191.     uucontrol, constuucontrol, -1, 0, 100)
  192.  
  193. DEF_UU_TABLE("control-chance-at", uu_control_at,
  194.     "base chance that a unit can control another in the same cell",
  195.     uucontrolat, constuucontrolat, -1, 0, 100)
  196.  
  197. DEF_UU_TABLE("control-chance-adjacent", uu_control_adj,
  198.     "base chance that a unit can control another in an adjacent cell",
  199.     uucontroladj, constuucontroladj, -1, 0, 100)
  200.  
  201. DEF_UU_TABLE("control-range", uu_control_range,
  202.     "distance out to which a unit can control another unit",
  203.     uucontrolrange, constuucontrolrange, -1, 0, 9999)
  204.  
  205. DEF_UU_TABLE("cp-on-creation", uu_creation_cp,
  206.     "completeness point of the unit when first created",
  207.     uucreationcp, constuucreationcp, 0, 1, 9999)
  208.  
  209. DEF_UU_TABLE("cp-per-build", uu_cp_per_build,
  210.     "completeness points added by one build action",
  211.     uucpperbuild, constuucpperbuild, 0, 1, 9999)
  212.  
  213. DEF_UU_TABLE("create-range", uu_create_range,
  214.     "max distance between unit and unit being created",
  215.     uucreaterange, constuucreaterange, 0, 0, 9999)
  216.  
  217. DEF_UU_TABLE("cxp-per-capture", uu_cxp_per_capture,
  218.     "combat experience gained from attempting to capture",
  219.     uucxppercapture, constuucxppercapture, 0, 0, 9999)
  220.  
  221. DEF_UU_TABLE("cxp-per-combat", uu_cxp_per_combat,
  222.     "combat experience gained from attack or defense",
  223.     uucxppercombat, constuucxppercombat, 0, 0, 9999)
  224.  
  225. DEF_UU_TABLE("damage", uu_damage,
  226.     "points of damage that one unit will inflict on another",
  227.     uudamage, constuudamage, 0, 0, 32767)
  228.  
  229. DEF_UU_TABLE("damage-cxp-effect", uu_damage_cxp,
  230.     "effect of combat experience on damage",
  231.     uudamagecxp, constuudamagecxp, 0, 100, 9999)
  232.  
  233. DEF_UT_TABLE("defend-terrain-effect", ut_defend_terrain_effect,
  234.     "effect of defender's terrain on attack results",
  235.     utdefendterraineffect, constutdefendterraineffect, 0, 100, 9999)
  236.  
  237. DEF_UU_TABLE("detonate-on-approach-range", uu_detonate_approach_range,
  238.     "range at which a unit will detonate if another approaches",
  239.     uudetonateapproachrange, constdetonateapproachrange, -1, -1, 9999)
  240.  
  241. DEF_UU_TABLE("detonate-on-capture", uu_detonate_on_capture,
  242.     "chance that a unit will detonate when captured",
  243.     uudetonateoncapture, constdetonateoncapture, 0, 0, 100)
  244.  
  245. DEF_UU_TABLE("detonate-on-hit", uu_detonate_on_hit,
  246.     "chance that a unit will detonate when hit in combat",
  247.     uudetonateonhit, constdetonateonhit, 0, 0, 100)
  248.  
  249. DEF_UT_TABLE("detonation-accident-chance", ut_detonation_accident,
  250.     "chance of an accidental detonation",
  251.     utdetonationaccident, constutdetonationaccident, 0, 0, 9999)
  252.  
  253. DEF_UU_TABLE("detonation-damage-at", uu_detonation_damage_at,
  254.     "damage done to units in the same cell as a detonation",
  255.     uudetonationdamageat, constuudetonationdamageat, 0, 0, 9999)
  256.  
  257. DEF_UU_TABLE("detonation-damage-adjacent", uu_detonation_damage_adj,
  258.     "damage done to units adjacent to a detonation",
  259.     uudetonationdamageadj, constuudetonationdamageadj, 0, 0, 9999)
  260.  
  261. DEF_UT_TABLE("detonation-terrain-range", ut_detonation_range,
  262.     "distance for detonation effects on terrain",
  263.     utdetonationrange, constutdetonationrange, 0, 0, 9999)
  264.  
  265. DEF_UU_TABLE("detonation-unit-range", uu_detonation_range,
  266.     "distance for detonation effects on units",
  267.     uudetonationrange, constuudetonationrange, 0, 0, 9999)
  268.  
  269. DEF_UT_TABLE("detonation-terrain-damage-chance", ut_detonation_damage,
  270.     "chance that detonation will damage a type of terrain",
  271.     utdetonationdamage, constutdetonationdamage, 0, 0, 100)
  272.  
  273. DEF_UT_TABLE("eye-height", ut_eye_height,
  274.     "effective height of a unit's eyes in a type of terrain",
  275.     uteyeheight, constuteyeheight, 0, 0, 0)
  276.  
  277. DEF_UT_TABLE("favored-terrain", ut_favored,
  278.     "the chance for a unit to be placed on a type of terrain",
  279.     utfavored, constfavored, 0, 100, 100)
  280.  
  281. DEF_UU_TABLE("ferry-on-entry", uu_ferry_on_enter,
  282.     "",
  283.     uuferryonenter, constuuferryonenter, 0, 2, 3)
  284.  
  285. DEF_UU_TABLE("ferry-on-departure", uu_ferry_on_leave,
  286.     "",
  287.     uuferryonleave, constuuferryonleave, 0, 2, 3)
  288.  
  289. DEF_UU_TABLE("hp-min", uu_hp_min,
  290.     "minimum below which attacker cannot reduce a defender's HP",
  291.     uuhpmin, constuuhpmin, 0, 0, 9999)
  292.  
  293. DEF_UU_TABLE("hp-to-garrison", uu_hp_to_garrison,
  294.     "how much of unit gets used up to garrison a capture",
  295.     uuhptogarrison, constuuhptogarrison, 0, 0, 9999)
  296.  
  297. DEF_UU_TABLE("hit-at-max-range-effect", uu_hit_max_range_effect,
  298.     "chance for a type of unit to hit another type of unit at longest range",
  299.     uuhitatmaxrangeeffect, constuuhitatmaxrangeeffect, 0, 100, 9999)
  300.  
  301. DEF_UM_TABLE("hit-by", um_hitby,
  302.     "kind of ammo that hits unit",
  303.     umhitby, constumhitby, 0, 0, 9999)
  304.  
  305. DEF_UU_TABLE("hit-chance", uu_hit,
  306.     "base chance for a type of unit to hit another type of unit",
  307.     uuhitchance, constuuhitchance, 0, 0, 100)
  308.  
  309. DEF_UU_TABLE("hit-cxp-effect", uu_hit_cxp,
  310.     "effect of combat experience on hit chance",
  311.     uuhitcxp, constuuhitcxp, 0, 100, 9999)
  312.  
  313. DEF_UU_TABLE("hp-per-repair", uu_repair,
  314.     "HP restored by a repair action",
  315.     uuhprepair, constuuhprepair, 0, 0, 9999)
  316.  
  317. DEF_UU_TABLE("hp-to-repair", uu_hp_to_repair,
  318.     "minimum HP to be able to do repairs to another unit",
  319.     uuhptorepair, constuuhptorepair, 1, 1, 9999)
  320.  
  321. DEF_UM_TABLE("hp-per-starve", um_hp_per_starve,
  322.     "HP lost/gained per turn of starvation",
  323.     umhpstarve, constumhpstarve, -9999, 0, 9999)
  324.  
  325. DEF_UM_TABLE("in-length", um_inlength,
  326.     "length of supply line coming in",
  327.     uminlength, constuminlength, 0, 0, 9999)
  328.  
  329. DEF_UU_TABLE("independent-capture-chance", uu_indep_capture,
  330.     "base chance for one type of unit to capture another indep type",
  331.     uuindepcapture, constuuindepcapture, -1, -1, 100)
  332.  
  333. DEF_UT_TABLE("independent-density", ut_indep_density,
  334.     "likelihood of an indep unit type on a terrain type",
  335.     utindepdensity, constutindepdensity, 0, 0, 9999)
  336.  
  337. DEF_UM_TABLE("load-max", um_load_max,
  338.     "maximum of material that may be added by a transfer action",
  339.     umloadmax, constumloadmax, -1, -1, 9999)
  340.  
  341. DEF_UM_TABLE("material-per-production", um_material_per_production,
  342.     "amount of material created by a production action",
  343.     umperproduction, constumperproduction, 0, 0, 9999)
  344.  
  345. DEF_UM_TABLE("material-to-act", um_to_act,
  346.     "supplies needed to be able to act at all",
  347.     umtoact, constumtact, 0, 0, 9999)
  348.  
  349. DEF_UM_TABLE("material-to-build", um_to_build,
  350.     "supplies needed to be able to work on a unit",
  351.     umtobuild, constumtobuild, 0, 0, 9999)
  352.  
  353. DEF_UM_TABLE("material-to-change-type", um_to_change_type,
  354.     "supplies needed to be able to change type",
  355.     umtochangetype, constumtochangetype, 0, 0, 9999)
  356.  
  357. DEF_UM_TABLE("material-to-create", um_to_create,
  358.     "supplies needed to be able to create",
  359.     umtocreate, constumtocreate, 0, 0, 9999)
  360.  
  361. DEF_UM_TABLE("material-to-fight", um_to_fight,
  362.     "supplies needed to be able to do any sort of combat",
  363.     umtofight, constumtofight, 0, 0, 9999)
  364.  
  365. DEF_UM_TABLE("material-to-move", um_to_move,
  366.     "supplies needed to be able to move",
  367.     umtomove, constumtomove, 0, 0, 9999)
  368.  
  369. DEF_UM_TABLE("material-to-produce", um_to_produce,
  370.     "supplies needed to be able to produce anything",
  371.     umtoproduce, constumtoproduce, 0, 0, 9999)
  372.  
  373. DEF_UM_TABLE("material-to-repair", um_to_repair,
  374.     "supplies needed to be able to repair anything",
  375.     umtorepair, constumtorepair, 0, 0, 9999)
  376.  
  377. DEF_UU_TABLE("speed-occupant-effect", uu_speed_occ_effect,
  378.     "effect of occupants on transport speed",
  379.     uuspeedocceffect, constuuspeedocceffect, 0, 100, 9999)
  380.  
  381. DEF_UT_TABLE("mp-to-enter-terrain", ut_mp_to_enter,
  382.     "mp needed to enter the terrain",
  383.     utmptoenter, constutmptoenter, -1, 1, 9999)
  384.  
  385. DEF_UU_TABLE("mp-to-enter-unit", uu_mp_to_enter,
  386.     "mp needed to enter a type of unit",
  387.     uumptoenter, constuumptoenter, -1, 0, 9999)
  388.  
  389. DEF_UU_TABLE("mp-to-enter-zoc", uu_mp_to_enter_zoc,
  390.     "mp needed to enter the zoc of a type of unit",
  391.     uumptoenterzoc, constuumptoenterzoc, -1, -1, 9999)
  392.  
  393. DEF_UT_TABLE("mp-to-leave-terrain", ut_mp_to_leave,
  394.     "mp needed to leave a type of terrain",
  395.     utmptoleave, constutmptoleave, -1, 0, 9999)
  396.  
  397. DEF_UU_TABLE("mp-to-leave-unit", uu_mp_to_leave,
  398.     "mp needed to leave a type of unit",
  399.     uumptoleave, constuumptoleave, -1, 0, 9999)
  400.  
  401. DEF_UU_TABLE("mp-to-leave-zoc", uu_mp_to_leave_zoc,
  402.     "mp needed to leave the zoc of a type of unit",
  403.     uumptoleavezoc, constuumptoleavezoc, -1, 0, 9999)
  404.  
  405. DEF_UT_TABLE("mp-to-traverse", ut_mp_to_traverse,
  406.     "mp needed to move along a connection",
  407.     utmptotraverse, constutmptotraverse, 0, 1, 9999)
  408.  
  409. DEF_UU_TABLE("mp-to-traverse-zoc", uu_mp_to_traverse_zoc,
  410.     "mp needed to move within the zoc of a type of unit",
  411.     uumptotraversezoc, constuumptotraversezoc, -1, 0, 9999)
  412.  
  413. DEF_UM_TABLE("occupant-base-production", um_occ_production,
  414.     "amount of material automatically produced by an occupant",
  415.     umoccproduction, constumoccproduction, -1, -1, 9999)
  416.  
  417. DEF_UU_TABLE("occupant-can-have-occupants", uu_occ_can_have_occs,
  418.     "true if a type of occupant can have occupants itself",
  419.     uuocccanhaveoccs, constuuocccanhaveoccs, 0, 1, 1)
  420.  
  421. DEF_UU_TABLE("occupant-can-construct", uu_occ_can_build,
  422.     "true if a type of occupant can build",
  423.     uuocccanbuild, constuuocccanbuild, 0, 1, 1)
  424.  
  425. DEF_UU_TABLE("occupant-combat", uu_occ_combat,
  426.     "effect of being an occupant on combat performance",
  427.     uuocccombat, constuuocccombat, 0, 100, 9999)
  428.  
  429. DEF_UU_TABLE("occupant-escape-chance", uu_occ_escape,
  430.     "base chance for a type of unit to move to avoid capture",
  431.     uuoccescape, constuuoccescape, 0, 0, 100)
  432.  
  433. DEF_UU_TABLE("occupant-vision", uu_occ_can_see,
  434.     "true if a type of occupant can see",
  435.     uuocccansee, constuuocccansee, 0, 1, 1)
  436.  
  437. DEF_UU_TABLE("occupant-max", uu_occ_max,
  438.     "extra ceiling on total number of a type",
  439.     uuoccmax, constuuoccmax, -1, -1, 9999)
  440.  
  441. DEF_UM_TABLE("out-length", um_outlength,
  442.     "length of supply line going out",
  443.     umoutlength, constoutlength, 0, 0, 9999)
  444.  
  445. DEF_MM_TABLE("people-consumption", mm_people_consumption,
  446.     "amount of material consumption by people",
  447.     mmpeopleconsumption, constmmpeopleconsumption, 0, 0, 9999)
  448.  
  449. DEF_MM_TABLE("people-production", mm_people_production,
  450.     "amount of material production by people",
  451.     mmpeopleproduction, constmmpeopleproduction, 0, 0, 9999)
  452.  
  453. DEF_UM_TABLE("people-see-chance", um_people_see,
  454.     "base chance for a type of people to see unit",
  455.     umpeoplesee, constumpeoplesee, 0, 100, 100)
  456.  
  457. DEF_UT_TABLE("people-surrender-chance", ut_people_surrender,
  458.     "Chance that people will surrender to occupying unit",
  459.     utpeoplesurrender, constutpeoplesurrender, 0, 0, 100)
  460.  
  461. DEF_UM_TABLE("people-surrender-effect", um_people_surrender,
  462.     "effect of people type on surrender chance",
  463.     umpeoplesurrender, constumpeoplesurrender, 0, 100, 9999)
  464.  
  465. DEF_UT_TABLE("productivity", ut_productivity,
  466.     "effect of terrain on production",
  467.     utproductivity, constproductivity, 0, 100, 9999)
  468.  
  469. DEF_UM_TABLE("productivity-max", um_productivity_max,
  470.     "upper limit on productivity for a material",
  471.     umproductivitymax, constumproductivitymax, 0, 9999, 9999)
  472.  
  473. DEF_UM_TABLE("productivity-min", um_productivity_min,
  474.     "lower limit on productivity for a material",
  475.     umproductivitymin, constumproductivitymin, 0, 0, 9999)
  476.  
  477. DEF_UU_TABLE("protection", uu_protection,
  478.     "The degree to which transports protect occupants and vice versa",
  479.     uuprotection, constuuprotection, 0, 100, 9999)
  480.  
  481. DEF_UM_TABLE("recycleable-material", um_recycleable,
  482.     "amount of material recoverable from a unit being disbanded",
  483.     umrecycleable, constumrecycleable, 0, 0, 9999)
  484.  
  485. DEF_UU_TABLE("retreat-chance", uu_retreat_chance,
  486.     "chance to retreat after combat",
  487.     uuretreatchance, constuuretreatchance, 0, 0, 100)
  488.  
  489. DEF_UU_TABLE("road-chance", uu_road_chance,
  490.     "chance for a road from one type to another",
  491.     uuroadchance, constuuroadchance, 0, 0, 100)
  492.  
  493. DEF_TT_TABLE("road-into-chance", tt_road_into_chance,
  494.     "chance for type of road into type of terrain",
  495.     ttroadintochance, constttroadintochance, 0, 0, 100)
  496.  
  497. DEF_UU_TABLE("scuttle-chance", uu_scuttle,
  498.     "base chance for u1 to wreck self to avoid capture by u2",
  499.     uuscuttle, constscuttle, 0, 0, 100)
  500.  
  501. DEF_UU_TABLE("see-chance", uu_see,
  502.     "chance for a type of unit to see another type at a distance",
  503.     uusee, constuusee, 0, 100, 100)
  504.  
  505. DEF_UU_TABLE("see-chance-at", uu_see_at,
  506.     "chance for a type of unit to see another type in an adjacent cell",
  507.     uuseeat, constuuseeat, 0, 100, 100)
  508.  
  509. DEF_UU_TABLE("see-chance-adjacent", uu_see_adj,
  510.     "chance for a type of unit to see another type in the same cell",
  511.     uuseeadj, constuuseeadj, 0, 100, 100)
  512.  
  513. DEF_UU_TABLE("spy-quality", uu_spy_quality,
  514.     "chance for u1 to return info about u2 when spied upon",
  515.     uuspyquality, constspyquality, 0, 100, 100)
  516.  
  517. DEF_UU_TABLE("stack-protection", uu_stack_protection,
  518.     "the degree to which units in same cell protect each other",
  519.     uustackprotection, constuustackprotection, 0, 100, 9999)
  520.  
  521. DEF_UM_TABLE("supply-on-creation", um_created_supply,
  522.     "materials created for a newly created unit",
  523.     umcreatedsupply, constumcreatedsupply, 0, 0, 9999)
  524.  
  525. DEF_UM_TABLE("supply-on-completion", um_completed_supply,
  526.     "materials created for a newly completed unit",
  527.     umcompletedsupply, constumcompletedsupply, 0, 0, 9999)
  528.  
  529. DEF_UM_TABLE("supply-per-disband", um_supply_per_disband,
  530.     "amount of supply recovered from a disband action",
  531.     umsupplyperdisband, constumsupplyperdisband, 0, 0, 9999)
  532.  
  533. DEF_UU_TABLE("surrender-chance", uu_surrender_chance,
  534.     "base chance for a unit to surrender to another nearby",
  535.     uusurrenderchance, constuusurrenderchance, 0, 0, 9999)
  536.  
  537. DEF_UU_TABLE("surrender-chance-per-attack", uu_surrender_per_attack,
  538.     "chance that a unit will surrender upon being attacked",
  539.     uusurrenderattack, constuusurrenderattack, 0, 0, 100)
  540.  
  541. DEF_UU_TABLE("surrender-range", uu_surrender_range,
  542.     "distance out to which a unit will surrender",
  543.     uusurrenderrange, constuusurrenderrange, 0, 0, 9999)
  544.  
  545. DEF_UU_TABLE("tech-crossover", uu_tech_crossover,
  546.     "effect of tech for one type on tech for another type",
  547.     uutechcross, constuutechcross, 0, 0, 100)
  548.  
  549. DEF_UU_TABLE("tech-per-research", uu_tech_per_research,
  550.     ".01 tech increase from one research action",
  551.     uutechperresearch, constuutechperresearch, 0, 0, 9999)
  552.  
  553. DEF_UU_TABLE("temperature-protection", uu_temp_protect,
  554.     "true if the transport protects the occupant from temperature effects",
  555.     uutempprotect, constuutempprotect, 0, 0, 1)
  556.  
  557. DEF_TM_TABLE("terrain-consumption", tm_consumption,
  558.     "amount of material consumption by a cell each turn",
  559.     tmconsumption, consttmconsumption, 0, 0, 9999)
  560.  
  561. DEF_TM_TABLE("terrain-production", tm_production,
  562.     "amount of material production by a cell each turn",
  563.     tmproduction, consttmproduction, 0, 0, 9999)
  564.  
  565. DEF_UT_TABLE("terrain-capacity-x", ut_capacity_x,
  566.     "number of units that can always be in terrain",
  567.     utcapacityx, constutcapacityx, 0, 0, 9999)
  568.  
  569. DEF_TT_TABLE("terrain-damaged-type", tt_damaged_type,
  570.     "chance that a type of terrain will change into another type if damaged",
  571.     ttdamagedtype, constttdamagedtype, 0, 0, 9999)
  572.  
  573. DEF_TM_TABLE("terrain-exhaustion-type", tm_exhaust_type,
  574.     "",
  575.     tmexhausttype, consttmexhausttype, 0, NONTTYPE, NONTTYPE)
  576.  
  577. DEF_TM_TABLE("terrain-initial-supply", tm_initial,
  578.     "amount of each material that a cell starts with",
  579.     tminitial, consttminitial, 0, 0, 9999)
  580.  
  581. DEF_TM_TABLE("terrain-storage-x", tm_storage_x,
  582.     "amount of each material that a cell can hold",
  583.     tmstoragex, consttmstoragex, 0, 0, 9999)
  584.  
  585. DEF_UU_TABLE("tp-max", uu_tp_max,
  586.     "maximum possible tooling",
  587.     uutpmax, constuutpmax, 0, 0, 9999)
  588.  
  589. DEF_UU_TABLE("tp-per-toolup", uu_tp_per_toolup,
  590.     "tooling points gained from a toolup action",
  591.     uutppertoolup, constuutppertoolup, 0, 1, 9999)
  592.  
  593. DEF_UU_TABLE("tp-to-build", uu_tp_to_build,
  594.     "tooling points needed to build a unit",
  595.     uutptobuild, constuutptobuild, 0, 0, 9999)
  596.  
  597. DEF_UU_TABLE("tp-attrition", uu_tp_attrition,
  598.     "",
  599.     uutpattrition, constuutpattrition, 0, 0, 9999)
  600.  
  601. DEF_UU_TABLE("tp-crossover", uu_tp_crossover,
  602.     "effect of tooling for one type on tooling for another type",
  603.     uutpcrossover, constuutpcrossover, 0, 0, 100)
  604.  
  605. DEF_UM_TABLE("unit-initial-supply", um_initial,
  606.     "amount of each material that a unit starts with",
  607.     utinitial, constinitial, 0, 0, 9999)
  608.  
  609. DEF_UU_TABLE("unit-capacity-x", uu_capacity_x,
  610.     "carrying capacity reserved for unit type",
  611.     uucapacityx, constuucapacityx, 0, 0, 9999)
  612.  
  613. DEF_UU_TABLE("unit-size-as-occupant", uu_size,
  614.     "how much space an occupant takes up in the given transport",
  615.     uusize, constuusize, 0, 1, 9999)
  616.  
  617. DEF_UT_TABLE("unit-size-in-terrain", ut_size,
  618.     "how much space a unit takes up in a cell",
  619.     utsize, constutsize, 0, 1, 9999)
  620.  
  621. DEF_UM_TABLE("unit-storage-x", um_storage_x,
  622.     "capacity for each material type",
  623.     umstoragex, constumstoragex, 0, 0, 9999)
  624.  
  625. DEF_UM_TABLE("unload-max", um_unload_max,
  626.     "maximum amount of material that may be removed by a transfer action",
  627.     umunloadmax, constumunloadmax, -1, -1, 9999)
  628.  
  629. DEF_UT_TABLE("vanishes-on", ut_vanishes_on,
  630.     "true if a unit in the terrain simply vanishes",
  631.     utvanisheson, constutvanisheson, 0, 0, 1)
  632.  
  633. DEF_UT_TABLE("visibility", ut_visibility,
  634.     "base chance to see unit when in terrain",
  635.     utvisibility, constutvisibility, 0, 100, 100)
  636.  
  637. DEF_UT_TABLE("vision-night-effect", ut_vision_night_effect,
  638.     "effect of night on vision",
  639.     utvisionnighteffect, constutvisionnighteffect, 0, 100, 9999)
  640.  
  641. DEF_UU_TABLE("withdraw-chance-per-attack", uu_withdraw_per_attack,
  642.     "chance that a unit will retreat to avoid an attack",
  643.     uuwithdrawattack, constuuwithdrawattack, 0, 0, 100)
  644.  
  645. DEF_UT_TABLE("wrecks-on", ut_wrecks_on,
  646.     "true if a unit in the terrain becomes wrecked",
  647.     utwreckson, constutwreckson, 0, 0, 1)
  648.  
  649. DEF_UT_TABLE("zoc-into-terrain", ut_zoc_into,
  650.     "true if a unit exerts its ZOC into a type of terrain",
  651.     utzocinto, constutzocinto, 0, 1, 1)
  652.  
  653. DEF_UT_TABLE("zoc-from-terrain-effect", ut_zoc_from_terrain,
  654.     "effects of a unit's terrain on its ZOC",
  655.     utzocfromterrain, constutzocfromterrain, 0, 100, 9999)
  656.  
  657. DEF_UU_TABLE("zoc-range", uu_zoc_range,
  658.     "distance to which ZOC is exerted",
  659.     uuzocrange, constuuzocrange, -1, 0, 9999)
  660.  
  661. DEF_UU_TABLE("zz-basic-hit-worth", uu_zz_bhw,
  662.     "",
  663.     uuzzbhw, constuuzzbhw, 0, 0, 0)
  664.  
  665. DEF_UU_TABLE("zz-basic-capture-worth", uu_zz_bcw,
  666.     "",
  667.     uuzzbcw, constuuzzbcw, 0, 0, 0)
  668.  
  669. DEF_UU_TABLE("zz-basic-transport-worth", uu_zz_btw,
  670.     "",
  671.     uuzzbtw, constuuzzbtw, 0, 0, 0)
  672.